package com.example.admin.myapplication;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.view.Window;
import android.widget.ImageView;
import android.widget.TextView;

/**
 * Created by admin on 2017/6/30.
 */

public class PayActivity extends AppCompatActivity {
    TextView title;
    TextView pay;
    ImageView back;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        this.requestWindowFeature(Window.FEATURE_NO_TITLE);
        setContentView(R.layout.layout_choose_pay);
        pay = (TextView)findViewById(R.id.textView24);
        back = (ImageView)findViewById(R.id.iv_nac_base_top_icon);
        title = (TextView)findViewById(R.id.tv_iv_nac_base_top_title);
        title.setText("确认结账金额");
        Bundle bundle = this.getIntent().getExtras();
        String Message = bundle.getString("Message");
        pay.setText(Message);
        back.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent in=getIntent();
                setResult(RESULT_OK, in);
                finish();

            }
        });

    }
}
